import pymongo
from settings import mongo_url

myclient = pymongo.MongoClient(mongo_url)

db = myclient.admin
# 认证
db.authenticate('adminkpmg', 'kpmg123')
mydb = myclient["spider"]


stock_db = mydb['stocks']  # use  1  所有stock
stock_tmp_db = mydb['stock_tmp']  # use  1 每日符合条件的 需要采集 stock 数据

# stock_core_db = mydb['stockCore'] # 公司介绍

data_one_db = mydb['data_one']   # 1min  K 线
history_one_db = mydb['history_one']  # 处理过的数据
data_one_db_tmp = mydb['data_one_db_tmp']  # 处理过的数据

data_five_db = mydb['data_five']  # 5min   K 线
history_five_db = mydb['history_five']  # 处理过的数据

east_five_db = mydb['data_east_five']  # 5min   K 线 东财
east_history_five_db = mydb['history_east_five']  # 5min  处理过的数据 东财
east_record_db = mydb['record_east_five']  # 5min  处理过的数据 东财

data_day_db = mydb['data_day']  # 日线
stock_all_tmp_db = mydb['stock_all_tmp']  # 日线 接口数据 20个交易日

new_ip_db = mydb['new_ip']
new_ip_txt_db = mydb['new_ip_txt']
dirty_ip_db = mydb['dirty_ip']
fail_ip_db = mydb['fail_ip']

account_db = mydb['account']

data_five_east_db = mydb['data_five_east']


record_db = mydb['record']
record_main_db = mydb['record_main']

record_yes_db = mydb['record_yes']
record_yes_main_db = mydb['record_yes_main']


record_tmp_db = mydb['record_tmp']
record_fif_db = mydb['record_fif']
record_thrid_db = mydb['record_thrid']
record_day_db = mydb['record_day']
record_collect_db = mydb['record_collect']

settings_db = mydb['settings_db']  # 设置

check_db = mydb['check_db']

concept_db = mydb['concept']

snowball_msg_db = mydb['msg_snowball']


ususer_db = mydb['ususer'] 